/* 基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f4f4f4;
}

.container {
    width: 80%;
    margin: 0 auto;
    padding: 20px;
}

/* 头部样式 */
header {
    background-color: #333;
    color: white;
    padding: 1rem 0;
}

header h1 {
    text-align: center;
    margin-bottom: 1rem;
}

/* 导航样式 */
nav {
    background-color: #444;
    padding: 0.5rem 0;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
}

nav ul li {
    margin: 0 1rem;
}

nav ul li a {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    display: block;
}

nav ul li a:hover {
    background-color: #555;
}

/* 侧边栏样式 */
.sidebar {
    width: 25%;
    float: left;
    background-color: white;
    padding: 1rem;
    margin-right: 2%;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.sidebar h3 {
    margin-bottom: 1rem;
    color: #333;
    border-bottom: 2px solid #333;
    padding-bottom: 0.5rem;
}

.sidebar ul {
    list-style: none;
}

.sidebar ul li {
    margin-bottom: 0.5rem;
}

.sidebar ul li a {
    color: #666;
    text-decoration: none;
}

.sidebar ul li a:hover {
    color: #333;
}

/* 主内容样式 */
.main-content {
    width: 73%;
    float: right;
}

/* 轮播图样式 */
.carousel {
    width: 100%;
    height: 300px;
    background-color: white;
    margin-bottom: 2rem;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    overflow: hidden;
    position: relative;
}

/* 轮播容器样式 */
.carousel-inner {
    width: 100%;
    height: 100%;
    position: relative;
}

/* 轮播项样式 */
.carousel-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
}

/* 活动轮播项样式 */
.carousel-item.active {
    opacity: 1;
    z-index: 1;
}

/* 轮播图控制按钮样式 */
.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
    z-index: 2;
}

.carousel-control:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.carousel-control-prev {
    left: 20px;
}

.carousel-control-next {
    right: 20px;
}

.carousel img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(0,0,0,0.5);
    color: white;
    padding: 1rem;
    z-index: 1;
}

/* 轮播指示器样式 */
.carousel-indicators {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 2;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: none;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background-color: white;
    width: 30px;
    border-radius: 6px;
}

/* 推荐书籍样式 */
.book-section {
    background-color: white;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.book-section h2 {
    margin-bottom: 1rem;
    color: #333;
}

.books {
    display: flex;
    justify-content: space-between;
}

.book {
    width: 30%;
    text-align: center;
}

.book img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    margin-bottom: 0.5rem;
}

.book h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.book p {
    color: #666;
    font-size: 0.9rem;
}

/* 视频播放样式 */
.video-section {
    background-color: white;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.video-section h2 {
    margin-bottom: 1rem;
    color: #333;
}

.video-container {
    width: 100%;
    height: 400px;
    background-color: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.video-list {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.video-item {
    width: 30%;
    text-align: center;
}

.video-item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    margin-bottom: 0.5rem;
}

/* 页脚样式 */
footer {
    clear: both;
    background-color: #333;
    color: white;
    padding: 2rem 0;
    text-align: center;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.footer-info,
.footer-links,
.footer-contact {
    width: 30%;
}

.footer-info h3,
.footer-links h3,
.footer-contact h3 {
    margin-bottom: 1rem;
    border-bottom: 1px solid #555;
    padding-bottom: 0.5rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 0.5rem;
}

.footer-links ul li a {
    color: #ccc;
    text-decoration: none;
}

.footer-links ul li a:hover {
    color: white;
}

/* 版权声明样式 */
.copyright {
    background-color: #222;
    padding: 1rem 0;
    text-align: center;
    color: #ccc;
    font-size: 0.9rem;
}